package com.uliky.shouyiLibrary.product.feign;

import com.uliky.common.utils.R;
import com.uliky.shouyiLibrary.product.feign.fallback.SeckillFeignServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

@FeignClient(value ="shouyiLibrary-seckill",fallback = SeckillFeignServiceFallBack.class)
public interface SeckillFeignService {

    @GetMapping(value = "/sku/seckill/{skuId}")
    @ResponseBody
    R getSkuSeckilInfo(@PathVariable("skuId") Long skuId);
}
